package cn.com.zcode.user.dao;

import java.util.List;

import cn.com.zcode.core.dao.BaseDao;
import cn.com.zcode.user.model.InviteCode;
import cn.com.zcode.user.model.LoginInfo;
import cn.com.zcode.user.model.User;

public interface UserDao extends BaseDao {
	
	public User getUser(String username, String password);

	public User getUserById(String id);

	public User getUserByName(String name);

	public boolean checkInviteCode(String code);

	public void usedInviteCode(String userid, String code);

	public List<InviteCode> listInviteCodes();

	public List<User> findUsers(String[] userid);

	public LoginInfo addLoginInfo(LoginInfo logininfo);

	public User addUser(User user);

	public InviteCode addInviteCode(InviteCode code);

	public List<User> listAllUsers();


}
